#coding=utf-8
"""
Author:杭州多测师_付佳美
Time:2025/5/14 16:07
website:https://duoceshi.net
"""
# coding = utf-8


from time import *
from appium import webdriver
desired_caps={
      'platformName':'Android',
      'deviceName':'SM-G9350',
      'platfromVersion':'android-4.4W',
      'appPackage':"com.baidu.yeudu",
      'appActivity':'com.baidu.yuedu.splash.SplashActivity',
      'unicodeKeyboard':True}

driver = webdriver.Remote('http://127.0.0.1:4723/wd/hub',desired_caps)

driver.implicitly_wait(30)
sleep(3)
driver.find_elements_by_xpath("//android.widget.TextView[@text='万相之王’]").click()

size = driver.get_window_size()
print(size)
sleep(2)
for i in range(1000):
      sleep(2)
      driver.swipe(620,640,100,640,1000)
















